<%@ page contentType="text/html; charset=utf-8"%>
<%@ include file="../../../common/include.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>添加用户</title>
<jsp:include page="../../../common/head.jsp">
	 <jsp:param name="_useTab" value="true"/>
	 <jsp:param name="_useTree" value="true"/>
</jsp:include>
<script language="javascript">
	function saveUser(){
		xj.showNotice=true;
		var objarr = new Array(
		["userlist.userName","用户姓名","notEmpty",""],
		["userlist.userOrder","用户排序","notEmpty",""],
		["userlist.groupSign","分组标识","notEmpty",""],
		["userlist.userOrder","用户排序","int","2"],
		["userlist.email","email","max","String:100"],
		["userlist.groupSign","分组标识","max","String:20"],
		["userlist.officeTel","办公电话","max","String:20"],
		["userlist.mobileTelephone","办公电话","max","String:15"],
		["userlist.remark","备注","max","String:500"]
		);
		if(xj.CheckAll(objarr))
		{
			if(confirm("确认保存？"))
			{
				//处理用户权限部分信息
				if($("#updFunc").length>0)
				{
					//调用修改权限页的js全部选中右侧所选权限组
					selectFuncRightAll();
				}
				document.form1.submit();
			}
		}
		else
			return false;
	}
	//返回
	function goback()
	{
		window.location.href="listUser.do";
	}
	$(document).ready(function()
	{
		xjTabs.initTab();
	});	
</script>
</head>

<body>
<form name="form1"  action="updateUser.do" method="post" onsubmit="return saveUser()">
	<div id="body_div">
	<w:ShowTitle name="修改用户">
	<w:TitleButton funcName="保存" onClickFunction="saveUser()" urlImg="${ctx}/images/main/save.png"/>
	<w:TitleButton funcName="返回" onClickFunction="goback()" urlImg="${ctx}/images/main/back.png"/>
	</w:ShowTitle>
	<div id="body_content">
	<div class="Sliding_tab">
		<ul>
			<li></li><li><span class="tabsLink" id="setTab0" link="#">基本信息</span></li><li></li>
			<li></li><li><span class="tabsLink" id="setTab1" link="listFuncUser.do?userId=${userlist.userId}&type=${param.type}">菜单权限</span></li><li></li>
			<li></li><li><span class="tabsLink" id="setTab2" link="listRoleUser.do?userId=${userlist.userId}&type=${param.type}">基础数据授权分配</span></li><li></li>
			<li></li><li><span class="tabsLink" id="setTab3" link="listReportUser.do?userId=${userlist.userId}&type=${param.type}">报表权限</span></li><li></li>
		</ul>
	</div>
	<table width="100%" id="content0" class="tabContent">
		<tr>
		<td>用户标识</td>
		<td class="left_align">
		<input name="userlist.state" type="hidden" value="A"/>
		<input name="type" type="hidden" value="${param.type}"/>
		<input name="userlist.password" type="hidden" value="${userlist.password}"/>
		<input name="userlist.createUserId" type="hidden" value="${userlist.createUserId}"/>
		<input name="userlist.userId" type="text" maxlength="20" value="${userlist.userId}" readonly="readonly"/></td>
		<td>用户姓名</td>
		<td class="left_align"><input name="userlist.userName" type="text" maxlength="25" value="${userlist.userName}"/></td>
	</tr>
	<tr>
		<td>办公室电话</td>
		<td class="left_align"><input name="userlist.officeTel" type="text" maxlength="20" value="${userlist.officeTel}"/></td>
		<td>移动电话</td>
		<td class="left_align"><input name="userlist.mobileTelephone" type="text" maxlength="15" value="${userlist.mobileTelephone}"/></td>
	</tr>
	<tr>
		<td>email</td>
		<td class="left_align"><input name="userlist.email" type="text" maxlength="100" value="${userlist.email}"/></td>
		<td>用户排序</td>
		<td class="left_align"><input name="userlist.userOrder" type="text" maxlength="2" value="${userlist.userOrder}"/></td>
	</tr>
	<tr>
		<td>分组标识</td>
		<td class="left_align"><input name="userlist.groupSign" type="text" maxlength="25" value="${userlist.groupSign}"/></td>
		<td>登录IP</td>
		<td class="left_align"><input name="userlist.loginIpAddress" type="text" maxlength="25" value="${userlist.loginIpAddress}"/></td>
	</tr>
	<tr>
		<td>框架样式</td>
		<td class="left_align" colspan="3">
			菜单图标样式
			<w:radio name="icoStyle" styleClass="radio" value="ico_big" serverValue="${icoStyle}"/>大
			<w:radio name="icoStyle" styleClass="radio" value="ico_small" serverValue="${icoStyle}"/>小
			<br/>
			分标签显示页面
			<w:radio name="tabStyle" styleClass="radio" value="tabFrame_yes" serverValue="${tabStyle}"/>是
			<w:radio name="tabStyle" styleClass="radio" value="tabFrame_no" serverValue="${tabStyle}"/>否
		</td>
	</tr>
	<tr>
		<td>备注</td>
		<td class="left_align" colspan="3">
			<textarea rows="5" cols="80" name="userlist.remark">${userlist.remark}</textarea>
		</td>
	</tr>
	</table>
	</div>
	</div>
</form>
</body>
</html> 